﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class News : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Session["userType"] != null && Session["userName"] != null)
            {
                Menu1.Items.RemoveAt(1);
            }
            else
            {
                Menu1.Items.RemoveAt(2);
            }
        }
    }

    public void Menu1_MenuItemClick(object sender, MenuEventArgs e)
    {
        Logout();
    }
}